package com.base;

import android.app.Application;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.base.net.BaseNet;

public class AppApplication extends Application {
	private static AppApplication app;
	private String name = "tom";
	private static RequestQueue queue;

	@Override
	public void onCreate() {
		super.onCreate();
//		CrashHandler crashHandler = CrashHandler.getInstance();
//		crashHandler.init(getApplicationContext());
		BaseNet.init();
		app = this;
		queue = Volley.newRequestQueue(this);

	}

	public static RequestQueue getHttpQueue() {
		return queue;
	}

	public static AppApplication getIntance() {
		return app;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
